#{extends 'main.html' /} #{set title:'用户登录' /}
<style>
body {
	margin: auto 0px;
	margin: 50px;
	text-align: center;
}

#main {
	margin: 0px auto; 
	text-align: center;
	width: 300px;
}
</style>
<script type="text/javascript">
	$(document).ready(function(e) 
	{
		$("#login").click
		(
		function(e) 
		{
			if($("#uname").val().length<=0)
			{
				$("#err").text("请输入账号");
				return false;
			}
			if($("#pwd").val().length<=0)
			{
				$("#err").text("请输入密码");
				return false;
			}
			return true;
		}
		);
	});
</script>
<div id="main">

	<table border="0">
		<form action="@{manager.Manager.login()}" method="post">
		<tr>
			<td align="center" colspan="2" style="color: red;" id="err">${error_msg}</td>
		</tr>
		<tr>
			<td align="right">用户名</td>
			<td><input type="text" name="uname" id="uname" /><font color="red">*</font></td>
		</tr>
		<tr>
			<td align="right">密码</td>
			<td><input type="password" name="pwd" id="pwd"/><font color="red">*</font></td>
		</tr>
		<tr>
			<td align="center" colspan="2"><input type="submit" value="登录"
				id="login" /></td>
		</tr>
		</form>
	</table>

</div>